<?php
my_component_load('testing' , false);
my_component_load('paging' , false);
//my_component_load('tna', false);
my_component_load('hasil_pelatihan');
$task = isset($_GET['task']) ? $_GET['task'] : ""; 
$id = isset( $_GET['id'] ) ? $_GET['id']:  0;
$kid = isset( $_GET['kid'] ) ? $_GET['kid']:  0;
$jid = isset( $_GET['jid'] ) ? $_GET['jid']:  0;
$modulname="HRD _BN_ Realisasi HRD" ;

if($_SERVER['REQUEST_METHOD'] == "POST" ){
	if($task == "editjadwal_pelatihan_page"){
	update_hasil($kid , $jid );
	generate_my_web("Updated","","plain.php");
		exit; 
	}
}else{
if($task == "editjadwal_pelatihan"){
		$title= ($id > '0' ) ?  "Perubahan Data" : "Tambah Data";
		facebox_page('index.php?com=hasil_pelatihan&task=editjadwal_pelatihan_page&kid='.$kid.'&jid='.$jid , $title , 260	); 
	}elseif($task == "editjadwal_pelatihan_page"){ 
		$content  = form_edit_hasil_penilaian($kid , $jid) ;
		generate_my_web($content,"","plain.php");
		exit; 
}elseif($task == "detail_peserta" ){
	$pagename = $modulname."  _BN_ Detail"; 
	load_facebox_script();
	$content = hasil_peserta_jadwal_page($jid);

}else{
	$pagename = $modulname;
	$content = list_jadwal_kelulusan_pelatihan();
} 
}
generate_my_web($content, $pagename  );